#ifndef HASHFIND_H
#define HASHFIND_H
#include <stdio.h>
typedef int Element;
// 节点
typedef struct hashNode {
	Element key;
	struct hashNode *next;
} HashNode;
// hash表头
typedef struct {
	HashNode** data;
	int len;
	int (*hash)(Element x);
} HashTable;

HashTable *initHashTable(size_t n, double factor);
void releaseHashTable(HashTable *hash_table);

void insertData(HashTable *hash_table, Element e);

int findData(const HashTable *hash_table, Element e);
#endif //HASHFIND_H
